package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FishManMapper;
import com.ruoyi.system.domain.FishMan;
import com.ruoyi.system.service.IFishManService;

/**
 * 鱼苗管理Service业务层处理
 * 
 * @author kinVincent22
 * @date 2023-06-19
 */
@Service
public class FishManServiceImpl implements IFishManService 
{
    @Autowired
    private FishManMapper fishManMapper;

    /**
     * 查询鱼苗管理
     * 
     * @param fishId 鱼苗管理主键
     * @return 鱼苗管理
     */
    @Override
    public FishMan selectFishManByFishId(Long fishId)
    {
        return fishManMapper.selectFishManByFishId(fishId);
    }

    /**
     * 查询鱼苗管理列表
     * 
     * @param fishMan 鱼苗管理
     * @return 鱼苗管理
     */
    @Override
    public List<FishMan> selectFishManList(FishMan fishMan)
    {
        return fishManMapper.selectFishManList(fishMan);
    }

    /**
     * 新增鱼苗管理
     * 
     * @param fishMan 鱼苗管理
     * @return 结果
     */
    @Override
    public int insertFishMan(FishMan fishMan)
    {
        return fishManMapper.insertFishMan(fishMan);
    }

    /**
     * 修改鱼苗管理
     * 
     * @param fishMan 鱼苗管理
     * @return 结果
     */
    @Override
    public int updateFishMan(FishMan fishMan)
    {
        return fishManMapper.updateFishMan(fishMan);
    }

    /**
     * 批量删除鱼苗管理
     * 
     * @param fishIds 需要删除的鱼苗管理主键
     * @return 结果
     */
    @Override
    public int deleteFishManByFishIds(Long[] fishIds)
    {
        return fishManMapper.deleteFishManByFishIds(fishIds);
    }

    /**
     * 删除鱼苗管理信息
     * 
     * @param fishId 鱼苗管理主键
     * @return 结果
     */
    @Override
    public int deleteFishManByFishId(Long fishId)
    {
        return fishManMapper.deleteFishManByFishId(fishId);
    }
}
